{extend name='public/base' /}

{block name="breadcrumb"}
{$crumbs}
{/block}

{block name="body"}
<div class="col-lg-12">
    <div class="ibox float-e-margins">
        <div class="ibox-content">
            <button class="btn btn-primary btn-xs"><a href="{:url('save_kefu_page')}"><i class="fa fa-plus"></i> 添加客服</a> </button>
            <table class="table">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>类型</th>
                    <th>帐号</th>
                    <th>时间</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                {volist name="kefu" id="vo"}
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.type|get_kefu_type}</td>
                    <td>{$vo.accounts}</td>
                    <td>{$vo.add_time|date="Y-m-d H:i:s",###}</td>
                    <td>
                        <button class="btn btn-info btn-xs"><a href="{:url('save_kefu_page', ['id' => $vo['id']])}"><i class="fa fa-edit"></i> 编辑</a> </button>
                        <button class="btn btn-danger btn-xs" data-kefu-id="{$vo.id}"><a href="javascript:;"><i class="fa fa-trash"></i> 删除</a> </button>
                    </td>
                </tr>
                {/volist}
                </tbody>
            </table>
        </div>
    </div>
</div>
{/block}